﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:winforms="clr-namespace:System.Windows.Forms;assembly=System.Windows.Form"
        xmlns:sys="clr-namespace:System;assembly=mscorlib"
        xmlns:vlc="clr-namespace:AXVLC;assembly=Interop.AXVLC"
        x:Class="ClipPlayer.MainWindow"
        Title="" Height="350" Width="525" Loaded="Window_Loaded"
        AllowDrop="True"
        Background="Black"
        WindowStyle="SingleBorderWindow"
        x:Name="win1" DragEnter="win1_DragEnter" Drop="win1_Drop" DragOver="win1_DragOver" PreviewMouseDoubleClick="win1_PreviewMouseDoubleClick" Icon="Pylon.ico"
        SizeChanged="win1_SizeChanged" 
        >

    <Window.Resources>
        <sys:Double x:Key="separatorSize">5</sys:Double>

        <BitmapImage x:Key="Prev" UriSource="Prev.png" />
        <BitmapImage x:Key="Play" UriSource="Play.png" />
        <BitmapImage x:Key="Stop" UriSource="Stop.png" />
        <BitmapImage x:Key="Next" UriSource="Next.png" />
        <BitmapImage x:Key="Random" UriSource="Random.png" />
        <BitmapImage x:Key="NoRandom" UriSource="NoRandom.png" />
        <BitmapImage x:Key="Delete" UriSource="Delete.png" />
        <BitmapImage x:Key="Note" UriSource="Notepad.png" />
        <BitmapImage x:Key="Like" UriSource="Like.png" />

        <SolidColorBrush x:Key="ProgressBarForground" Color="#214FC6"/>
        <!--New Car-->
        <SolidColorBrush x:Key="ButtosBackground" Color="Wheat"/>
        <!--245,222,179-->
        <SolidColorBrush x:Key="DeleteButtonBackground" Color="#FF0800"/>
        <!--Candy apple red-->

        <LinearGradientBrush x:Key="winBck" x:Name="winBck">
            <GradientStop Offset="0.8" Color="LightGoldenrodYellow"/>
            <GradientStop Offset="0.1" Color="LightGreen"/>
        </LinearGradientBrush>

        <Style TargetType="{x:Type Window}">
            <Setter Property="Background" Value="Black"/>
        </Style>

        <Style TargetType="{x:Type ProgressBar}">
            <Setter Property="Background" Value="{StaticResource ButtosBackground}"/>
            <Setter Property="Foreground" Value="{StaticResource ProgressBarForground}"/>
        </Style>

        <Style TargetType="{x:Type Button}">
            <Setter Property="HorizontalContentAlignment" Value="Center"/>
            <Setter Property="VerticalContentAlignment" Value="Center"/>
            <Setter Property="Width" Value="25"/>
            <Setter Property="Background" Value="{StaticResource ButtosBackground}"/>
        </Style>

        <Style x:Key="BigToolTip" TargetType="{x:Type ToolTip}">
            <Setter Property = "FontSize" Value="30"/>
            <Setter Property = "FontWeight" Value="Bold"/>
        </Style>

    </Window.Resources>

    <Grid x:Name="grid1">
        <Grid.RowDefinitions>
            <RowDefinition x:Name="r1"/>
            <RowDefinition x:Name="r2" Height="20"/>
        </Grid.RowDefinitions>
        <WindowsFormsHost x:Name="wfh" Grid.Row="0" HorizontalAlignment="Stretch" Margin="0,0,0,0" VerticalAlignment="Stretch" Grid.ColumnSpan="3"/>
        <StackPanel Grid.Row="1" x:Name="toolStrip" Orientation="Horizontal" Grid.ColumnSpan="3">
            <Label x:Name="lbl0" Width="10"/>
            <Button x:Name="buttonPrev" Click="buttonPrev_Click">
                <Image Source="{StaticResource Prev}"  Stretch="UniformToFill"/>
            </Button>
            <Label Width="{StaticResource separatorSize}"/>
            <Button x:Name="buttonPlay" Click="buttonPlay_Click">
                <Image Source="{StaticResource Play}"  Stretch="UniformToFill"/>
            </Button>
            <Label Width="{StaticResource separatorSize}"/>
            <Button x:Name="buttonNext" Click="buttonNext_Click">
                <Image Source="{StaticResource Next}"  Stretch="UniformToFill"/>
            </Button>
            <Label Width="{StaticResource separatorSize}"/>
            <ProgressBar x:Name="progressBar1" Width="100" Height="7" Cursor="Cross" Tag="*" MouseLeftButtonDown="progressBar1_MouseLeftButtonDown"/>
            <Label Width="{StaticResource separatorSize}"/>
            <Button x:Name="buttonRandom" Click="buttonRandom_Click" ToolTip="Random/Seqential">
                <Image Source="{StaticResource NoRandom}"  Stretch="UniformToFill" Tag="Seqential"/>
            </Button>
            <Label Width="{StaticResource separatorSize}"/>
            <Button x:Name="buttonDelete" Click="buttonDelete_Click" ToolTip="Safe Delete" Background="{StaticResource DeleteButtonBackground}">
                <Image Source="{StaticResource Delete}"  Stretch="UniformToFill"/>
            </Button>
            <Label Width="{StaticResource separatorSize}" />
            <Button x:Name="buttonNote" ToolTip="Note this clip" Click="buttonNote_Click" Background="Black">
                <Image Source="{StaticResource Note}"  Stretch="UniformToFill"/>
            </Button>
            <Label Width="{StaticResource separatorSize}" />
            <Button x:Name="buttonLike" ToolTip="Like this clip" Click="buttonLike_Click" Background="Black">
                <Image Source="{StaticResource Like}"  Stretch="UniformToFill"/>
            </Button>

        </StackPanel>
    </Grid>
</Window>
